import customtkinter

darkmode = False
if darkmode:
    customtkinter.set_appearance_mode('dark')
else:
    customtkinter.set_appearance_mode('light')

customtkinter.set_default_color_theme('green')


root = customtkinter.CTk()
root.geometry('400x320')


frame = customtkinter.CTkFrame(master=root)
frame.pack(pady=40, padx=40, fill='both', expand=True)


label = customtkinter.CTkLabel(master=frame, text='Login System')
label.pack(pady=10, padx=10)


username_entry = customtkinter.CTkEntry(master=frame, placeholder_text='Username')
username_entry.pack(pady=10, padx=10)

password_entry = customtkinter.CTkEntry(master=frame, placeholder_text='Password', show='*')
password_entry.pack(pady=10, padx=10)

def login():
    print('Username =', username_entry.get())
    print('Password =', password_entry.get())

button = customtkinter.CTkButton(master=frame, text='Login', command=login)
button.pack(pady=10, padx=10)

checkbox = customtkinter.CTkCheckBox(master=frame, text='Remember Me')
checkbox.pack(pady=10, padx=10)


root.mainloop()
